
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  <script type="text/javascript" src="./js/echarts.min.js"></script>
</head>

<body style="height: 100%; margin: 0">

  <div id="container" style="height: 100%"></div>

  <script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom);
   function  setOption(option){
     myChart.setOption(option);
   }
    window.addEventListener('resize', myChart.resize);
  </script>
</body>

</html>